<html>
<head><meta charset="utf-8"><title>serde in the compiler · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html">serde in the compiler</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="163099306"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163099306" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163099306">(Apr 11 2019 at 13:33)</a>:</h4>
<p>Since we can use proc macros in the compiler now, can we potentially pull in serde? I believe this would be faster for our JSON stuff (looking at you save-analysis) <span class="user-mention" data-user-id="116466">@Zoxc</span> <span class="user-mention" data-user-id="119009">@eddyb</span></p>



<a name="163099420"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163099420" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Zoxc <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163099420">(Apr 11 2019 at 13:34)</a>:</h4>
<p>That currently causes problems with tools which also use serde from <a href="http://crates.io" target="_blank" title="http://crates.io">crates.io</a></p>



<a name="163100656"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163100656" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163100656">(Apr 11 2019 at 13:48)</a>:</h4>
<p>Hm, isn't that the same case for all of our <a href="http://crates.io" target="_blank" title="http://crates.io">crates.io</a> deps in the compiler?</p>



<a name="163100680"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163100680" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163100680">(Apr 11 2019 at 13:49)</a>:</h4>
<p>do you have any link to issues with this?</p>



<a name="163579782"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163579782" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163579782">(Apr 17 2019 at 16:56)</a>:</h4>
<p><span class="user-mention" data-user-id="116466">@Zoxc</span> <span class="user-mention" data-user-id="119009">@eddyb</span>  is it because we can't have two same-but-different proc macros&gt;</p>



<a name="163579783"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163579783" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163579783">(Apr 17 2019 at 16:56)</a>:</h4>
<p>?</p>



<a name="163581456"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163581456" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163581456">(Apr 17 2019 at 17:17)</a>:</h4>
<p>Found some:<br>
<a href="https://github.com/rust-lang/rust/issues/40177" target="_blank" title="https://github.com/rust-lang/rust/issues/40177">https://github.com/rust-lang/rust/issues/40177</a><br>
<a href="https://github.com/rust-lang/rust/issues/40527" target="_blank" title="https://github.com/rust-lang/rust/issues/40527">https://github.com/rust-lang/rust/issues/40527</a></p>



<a name="163605904"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/serde%20in%20the%20compiler/near/163605904" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/serde.20in.20the.20compiler.html#163605904">(Apr 17 2019 at 22:19)</a>:</h4>
<p>Not sure if serde derive proc macro itself works but regular serde seems to work OK for what it's worth - <a href="https://github.com/rust-lang/rust/pull/60053" target="_blank" title="https://github.com/rust-lang/rust/pull/60053">https://github.com/rust-lang/rust/pull/60053</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>